<?php $header=$this->action('ZfcAdmin\Controller\AdminController', 'headerAction');
	  $baseUrl = $header->headerarray['baseUrl'];
?>
<?php if(isset($_SESSION['admin'])){?>
<html>
	<center>
		<head>
			<h5>Order Change</h5>
		</head><br/>
		<body>
			<form id="order_change_form" name="order_change_form" method="post" action="">
				Change order status<select id="order_status" name="order_status">
					<option value="">Select a order status</option>
					<? if($this->getOrderInfo->order_status=='pending'){?>	
						<option value="pending" selected="selected">Pending</option>
						<option value="processing" >Processing</option>
						<option value="published">Published</option>
					<?}else if($this->getOrderInfo->order_status=='processing'){?>
						<option value="pending">Pending</option>
						<option value="processing" selected="selected">Processing</option>
						<option value="published">Published</option>
					<?}else if($this->getOrderInfo->order_status=='published'){?>	
						<option value="pending">Pending</option>
						<option value="processing">Processing</option>
						<option value="published" selected="selected">Published</option>
					<?}?>					
				</select><br/><br/><br/>
				<input type="hidden" id="order_id" name="order_id" value="<? echo $this->getOrderInfo->ads_order_id;?>">
				<input type="button" id="order_change" name="order_change" value="Save" OnClick="return orderChange();">
			</form>
		</body>
	</center>
</html>
<? } else {?>
<script>
	window.location=ADMIN_BASE_URL+'admin';
</script>
<?}?>